package com.atguigu.search.service;

import com.atguigu.param.ProductSearchParam;
import com.atguigu.pojo.Product;
import com.atguigu.utils.R;
import com.fasterxml.jackson.core.JsonProcessingException;

import java.io.IOException;

/**
 * ClassName:SearchService
 * Package:com.atguigu.search.service
 * Description:
 *
 * @Author 应永豪
 * @Create 2024/4/22 10:41
 * @Version 1.0
 */
public interface SearchService {

    R search(ProductSearchParam param);

    R saveProduct(Product product) throws IOException;

    R removeProduct(Integer productId) throws IOException;
}
